import "babel-polyfill";
import React from 'react';
import ReactDOM from "react-dom";
import { Router, browserHistory,Route,IndexRoute,Redirect,IndexRedirect,hashHistory} from "react-router";
import Examination from "../component/examination/examination.js";
import App from "../component/common/layout/app.js";
import ExamAdd from "../component/examination/examAdd.js";
import ExamEdit from "../component/examination/examEdit.js";
ReactDOM.render(
    <Router history={browserHistory} >
        <Route path="/examination" component={App}>
            <IndexRoute  component={Examination}/>
            <Route path="add" component={ExamAdd}/>
            <Route path="edit/:id" component={ExamEdit}/>
        </Route>
    </Router>
  , document.getElementById('root')
);
